package com.gitee.poi.plugin.test;

import com.gitee.poi.plugin.annotations.core.*;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

/**
 * @author wangxin
 * @time 2018/10/9 9:38
 */
@SheetName("test")

@VerticalAlign
@Align(HorizontalAlignment.CENTER)
public class User {


    @Column("用户UID（必填）")
    @AutoSizeColumn
    private Integer uid;


    @Column("用户姓名（必填）")
    private String uname;

    @Column("学校fid（必填）")
    @AutoSizeColumn
    private Integer fid;

    @Column("学校名称（必填）")
    private String fname;

    @Column("角色身份（必填）")
    private Integer role;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", fid=" + fid +
                ", fname='" + fname + '\'' +
                ", role=" + role +
                '}';
    }
}
